import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

//引入全局样式
import './assets/css/gloable.css'
//导入淘宝无限适配
import './assets/js/flexible.js'
//导入字体图标
import '@/assets/fonts/iconfont.css'
//引入fun-tab插件并全局注册
import FunTab from 'fun-tab'
import 'fun-tab/dist/index.css'
//导入封装好的创建的axios方法
import http from './utils/request'
//导入组件库
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import { Stepper, Checkbox, CheckboxGroup, Icon, AddressList, AddressEdit, Dialog, RadioGroup, Radio } from 'vant';
import 'vant/lib/index.css'
//fastclick
import fastclick from 'fastclick'
fastclick.attach(document.body)

const app = createApp(App)
app.config.globalProperties.$http = http;
app.use(router)
app.use(FunTab)
app.use(ElementPlus)

//注册vant组件库
app.use(Stepper);
app.use(Checkbox);
app.use(Icon);
app.use(CheckboxGroup);
app.use(AddressList)
app.use(AddressEdit)
app.use(Dialog)
app.use(RadioGroup)
app.use(Radio)

app.mount('#app')